<template>
    <div class="goods">
        <GoodsListItemVue v-for="item in goods" :goodsItem="item"></GoodsListItemVue>
    </div>
</template>

<script>
    import GoodsListItemVue from './GoodsListItem.vue'

    export default{
        name : 'GoodsList',
        props : {
            goods : {
                type : Array,
                default(){
                    return []
                }
            }
        },
        components : {
            GoodsListItemVue
        }
    }
</script>

<style scoped>
    .goods{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }

</style>